package fr.iut.tp3.controller.commands;

import fr.iut.tp3.controller.events.Event;
import fr.iut.tp3.controller.events.EventDispatcher;

public class CAjouterFenetre implements Commande {

	private static CAjouterFenetre instance;

	public static CAjouterFenetre getInstance() {
		if (instance == null) {
			instance = new CAjouterFenetre();
		}
		return instance;
	}

	@Override
	public void execute() {
		EventDispatcher.getInstance().sendEvent(Event.NEW_WINDOW);
	}

}
